package com.lcf.system.dto;

import com.lcf.framework.annotation.DictFile;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 商品(Goods)表实体类
 *
 * @author lcf
 * @since 2025-05-02 11:54:59
 */
@Data
@NoArgsConstructor
public class GoodsDTO {
    //分类id
    @Schema(description = "分类id")
    @NotNull(message = "分类id不能为空")
    private Long categoryId;
    //店铺id
    @Schema(description = "店铺id")
    @NotNull(message = "店铺id不能为空")
    private Long storeId;
    //商品名称
    @Schema(description = "商品名称")
    @NotBlank(message = "商品名称不能为空")
    private String goodsName;
    //商品封面
    @Schema(description = "商品封面")
    @DictFile
    private String goodsImg;
    //商品价格
    @Schema(description = "商品价格")
    @NotNull(message = "商品价格不能为空")
    private BigDecimal goodsPrice;
    //规格
    @Schema(description = "规格")
    @NotBlank(message = "规格不能为空")
    private String goodsSpec;
}

